package com.linden.std.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linden.std.domain.po.SysUser;
import com.linden.std.domain.po.SysRole;
import com.linden.std.domain.po.SysMenu;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author linden
 * @since 2025-09-20
 */
public interface ISysUserService extends IService<SysUser> {
    
    SysUser getUserByUsername(String username);
    boolean existsByUsername(String username);
    List<String> obtainUserRoleAndPermissions(Long userId);
    void updateLastLoginInfo(Long userId, String loginIp);
    List<SysRole> getUserRoles(Long userId);
    List<SysMenu> getUserMenus(Long userId);
}
